Re-organized templates and examples
Added template duplication and debug mode