Add some functions and fix mistakes
Add apiKey