put stuff together, pretty sure it works, haven't tested some errors but reasonably sure it'll be fine (incorrect bit stuffing, bad EOP, bad crc)