Added the -f option when exporting functions.
Renamed the process function to process_option.
Fixed missing process_option function renames.
Refactored the scripts in the functions folder.
Updated run.sh usage.