Added API key and comments to the code