Add an example template json file.
Fix issues with output templates.