Adding PHPDoc comments for templater.inc