changes to goal, hdf5 and h5py and numpy arrays