Added a .gitignore, changed around some utility code.