Fixed errors and added missing commands to .travis.yml