Go through each function and write out descriptions of its inputs/outputs and how each function works.