Clean main.rb file