added map state implementation

* refactored filename generation in transactional output
* added example topology for map state