- introduce factory for identifiers
- move identifier classes into separate package
- add debug mode
- small fixes