add support for getIdentity
simplified constructor for callback-less values
improve StackEmulator

- allow to stop and restart simulation
- add more error-handling