command line parsing in place, creates output files.