Have to solve how to correctly build bitset from bytearray, but the rest is finished