Add Gemfile & fix deprecation warnings