Minor update

- Removed many unused variables
- Removed redundant lines of ode