Improvements for instantiation and orcessing a template, twig added