* changed variable names, comments and added more parameters to the confuncs