Fixed template modifications to the right place
Fixed gemfile