Add gitignore, and make it work.