updated initWithAPIKey to registerAPIKey

updated initWithAPIKey to registerAPIKey