Added documentation to the whole api package

I added some basic documentation to the whole api package. Was a bit tedious but it should pay off in the future.