updating Gemfile, Rakefile, fixing lint and fixing tests