Added documentation to the API endpoints.