Added documentation for templates.