First working version of the sync block.

Quite strangely it works only when reading bits from a file and not on a live stream.

Still missing a proper return the sync signal.
Merge branch 'sync' into main-dev