Improve documentation about bitmasks