improving application.rb readability and comments