created MANAGER variable to simplify logic in functions
consolidated more functions, now -s flag sets walltime