Better error log
Added debug messages to help developer notice when API key is invalid or not set.
Fixes IOS-383