Updated readme.md

Updated readme.md also did code cleanup.