added RK4 integrator