Added some functions

Updated some functions and added usage(), parseArgs(), and runAll() functions to automate and interactively run the script.