Fixed a tricky bug in decoder.py, syndrome changes were only being recorded when going from no syndrome to a non-trivial syndrome, not when syndromes disappeared