update gemfile, clean up code and configure travis