removed beginning.rb and added comments to main.rb