removed hard-coded API key #define from library
adopted designated initialiser with api key as a parameter