added main controller
updated gemfile
Getting a history has already been started error