Pass API key as an argument

The API key can now be passed as an argument to the script using -k
[apikey]