Added a constructor for the case when there is no hdf5