Add documentation for each of the API functions