bugfix.

made it so that sending a bunch of \0 will put it back in sync.
added sync option