added simple hdf5 read and writes, templated