added comments in functions file