Update templates.php

Edited formatting and added a bunch of junky comments...