Add hdf5 reading functionality, tests