Updates comments

Some functions were not properly commented, this adds those comments

Author: nfbrown
Merge branch 'feature-emailnotification' into team9dev