Fix logic error in sense of comparison
Add .gitignore