finalized the integrator, functions well, tested wrt mathematica