Update API documentation.
Coding style and whitespace cleanups.