Added documentation code to the template.