improved templates doc