Dev/nprocs

- allow to process multiple events concurrently
- fix issue #4