Added template generating file
Added third DOM arg to Templates.toDOM to specifying wrapping object