Fixed the .gitignore functionality.

Added a working .gitignore file and removed .gitignore.txt.