Wrote exerciser test program.
Fixed bug: missing END in leftover bytes.