Updated documentation for API functions.