Added some API documentation