update
vectorized simulation of patient, about 50% faster.
also fixed slow extract_event_dat