transmit thread more event driven

+ transmit thread is now more event driven
+ fixed minor logic errors

* modified protocolparams to be easier to debug...set the control
  characters back to typable characters
* modified the transmit and receive argument structures