Added documentation to the API