Fix type of if.
Add files to gitignore.