Fixed class checking; updated Gemfile