Fix coding style and update documentation.