Finished copying all methods from the api to the library, added some
more callbacks that i had missed.