Added more documentation annotations and comments to the functions. Revised...

Added more documentation annotations and comments to the functions. Revised all function are correctly structured and indented
2 jobs for dev-test-provenance
in 23 minutes and 20 seconds, using 0 compute credits, and was queued for 7 minutes and 10 seconds