Somewhat documented. Bit values for the tiles are just class variables now.
More documentation.