cleanup of driver code - fixed some logic errors in Pa/Jack bindings, and a memory leak