updated main.rb
fixed Rakefile