init app.rb and fix some rubocop