Future improvements:

* more unit tests!

* better documentation!

* parameter validation (for url, username, api key etc.)
