added command line flags to kinda match the python scanner. the logic might be a little fucked because I didn't retain all of the flags. also fixed some calibration issues, since I have ne scans in which the lines are not as bright.