changed unless to if; added travis to gitignore