bit type added

with a bug found - that I didn’t check the outside range of bits