Handle when API key is invalid
Minor bug fixes
Merge pull request #1 from nathanbarry/invalid_apikey_handling

Error Handling and cURL switch