Added a bunch of API docs