fixed gemfile and removed some warnings