Fix coding style and add doc blocks