remove unused bit averaging code.
refine, fix and simplify CPU/serial monitor transaction interface.