add variable byte_index
print bits according to bitwalker