fixed bugs with hdf5 event fetching and stimulus/trial parsing