Updated documentation for templates.