Added Readme and updated .rb code with comments