Updated template.rb so that all sections are organized and clearly labeled.
Added gem versions to Gemfile.