minor optmization changes.
rewrites hdf5io. psdfio is no longer supported.