improved TemplateRenderer, for-loops and ifs are now possible. added test for renderer
improved template renderer. For-loops and ifs now possible.