Added comments to template.php