Combined cURL code and the Instamap code, updated output file