Updated some function comments for API documentation.