Fix coding standards and missing doc blocks.