Edits on template_guide/functions.rst

Edits for consistency:
* Fix spelling and capitalization
* Add missing "."
* Use same layout for "Returns"

Change-Id: Ieb2effc1f45fb261f45775be9664ea93b04c8e98
Merge "Edits on template_guide/functions.rst"