moved template namespace to generator, added idention class