Add .gitignore.
Small bug fix.