Improved BitBuffer and its documentation