>> 1. Could you please try adding the trailing slash in "Starting URL" input at configuration page and recrawl?
It is no problem to correct it by hand, maybe it is just a typing error in your php source code for that input field.
>> 2. Is "Warning: gzfile(..)" message still displayed after you have generated the sitemap?
Now, everything is fine. Well done