added defaultcomments to functions