interim - found that detection of 1 was being ignored and must fix.

How it fails:
1. more than a symble is read.
2. a phase inversion is detected.
3. a 0 is recorded as a result and the leading 1 is ignored.