If you removed the log from remote or local, it only stored the diff after running a sync. This is bad, the whole history should be stored. Fixed this. Also removed unused/old/dead code