Updated documentation for the bitstream
omit generating bitmasks multiple times