Added API documentation.