moved template loading into a function and this function is called every pass after file loading. Now you can put new defintions in the files you load
changed how globals are handled (so my editor would stop complaining)
added more verbose output
fixed bug on template re-merging
had to add back global statements
tweaked verbose output
cleaning up
made Full not global and args to ProcessTemplate are by keyword
writeout changed to a with statement