Added some API documentation.