Some modifications, remove duplicate code, run copy paste detector
Add travis_setup
Added dependancy
Merge pull request #309 from jonathangreen/travis

Travis