support for external termination criterion
read in all hdf5 files at once
fixed hdf5 data layer issue when data is kept in memory the labels weren't set properly
termination criterion that is run parallely in the background