Full sync is implemented with error correction of up to 5 bits and block detection

There seems to be still a problem. Must look further before merging into master.