Read command-line parameters; Construct the requisite filenames and check that they exist; if (smooth) { make template file; for each (input file) { invoke asmooth with the input file, the template file and the exposure map as a mask file; } } invoke colimplot;