Update TemplateEngine, ...

Update TemplateEngine
Update Classes
Add Config Class
Revert "Update TemplateEngine, ..."

This reverts commit 4185704f4fb0931c402700686874a2e910df4519.