events function

Implementing Events and Roots in Differential Equation Models.