Added 4096-byte transfers, and added calls to tcflush all over.
Pump up the compiler optimization to MAX.
Huge speed increase, many bugs fixed.