Tidy up of app.rb