Now using threads to read ftdi.
Minor cleanups.