Adding a command line option to specify the work directory.
Minor changes to print outs.