Added referer-header element to get acceptance from more servers. Fixed crash with gzip