Bitstuffing seems to work correctly now. can't find errors.