renamed bit operations, introduced getbits