Modified grid scan driver to read in scan parameters from input file, enabled random scanning as well as grid scanning