update helper functions save and load hdf5. keyrange and createDict added as arguments