Updated exporter hdf5:
- Bugfixes
- Refactoring