Improve Gemfile and application