cleanup
added documentation of VARIANT= option
change parameter to write_bit() to be actual # of bits (not len-1)
autoadjust ftdi frequency when using USE_LOGGING