Refactored template-processor
Merge branch 'master' into gh-pages