Event class.
name
event name, character value
times
interruption times, numeric vector
fun
event function to apply at each interruption
debug
output the variables that were changed through this event