rename write_bit to put_bit
fix bitbuff oboe
broken tree creation