removed bitbuffer.isFull and introduced .freeBitCount instead