made template helpers private and added phpdoc