fixing hdf5 file generation
tweaking style for larger number of batches