Added documentation to templates