Added documentation for API usage