set up optional parameters, saving results to *_cleaned.csv, added helpers for printing results to stdout