Add documentation for API typedef functions