Added option for external template, and beefed up the git ignore.