Adding documentation to the API