Initial ODE integration

- near callback function needs correction