Added documentation of the API