added index and edited main.rb