Update functions.php

Added some documentation.