added euler integrator (not tested) and related code