Making scan parameters dynamic.

Scan parameters are now populated from command line arguments.  Sane defaults are used when a parameter is not provided.