added comments to ruby code, removed unnecessary code
added readme