updated bash script and scan_detector with cleaned up code and some small new functionality

scandd clears now -- considering some name changes??