Fixed some more template issues. Added gitignore.