fixes #19
fixes #18 and fixes #19
Merge pull request #21 from Sjeanpierre/curl_download

Curl download