added arguments to main function to specify which fxns to run. printOut argument added to specify wheter to return print to stdout or to return a list of strings