Fix API documentation.
Merge pull request #571 from Hywan/api_documentation

Fix API documentation