runFleXScan function

Run main routine of FleXScan.