Add documentation and minor code-refactoring

How about `Sets the API key to use in following calls.`.