installing gems and fixing gemfile