Updating deprecated HDF5 subroutine calls

In the newest versions of HDF5 the default deprecated subroutines point to the old versions. We're using the new versions of the subroutines (called "2").