Updated library to the new version of the API

Everything is updated. Enjoy!