Minor fixes and added readme and comments