Break writeToHDF5 into version to write to filename, version to write
 to open HDF5 ID.