Implement rest of hdf5 file saving