Functions Industry

Commenting and refinement of the functions to meet the requirements of
the assignment…
Now my brain hurts and I’m tired…