Add command line arguments to the iter_plot scripts

Also check that the input files are valid.
Merge remote-tracking branch 'origin'