added sample code for overwriting templates
fixed wrong references
Merge pull request #16 from dArignac/master

added sample code for overwriting templates