uptading the mainProc

this is an update to my file, adding new functions