replace write_bit/flush_bits by write_bits
Merge pull request #107 from znarf/write_bits

replace write_bit/flush_bits by write_bits