Add documentation for the API functions.