Update API documentation.
Coding style and whitespace cleanup.