added hamming en- and decoding, better debug logging for single frames