flesh out the reset of the merging receiver and fix bugs.  next step is generated code for comparitor and copier.