updates main.rb by adding comments to methods