Add file documentation and few other changes in coding style