Add documentation to the API fucntions.