Added more API documentation.