more edits on main file
ran code in ruby, fixed typos