- bitmask components searching
- entity states
- minor fixes
- added DEBUG flag