Polished the bitmask handler; it's working now as intended.  Correctly encoding and decoding numbers