Added API documentation