changed sign of expressions involving forces (since gradients are now used throughout to avoid confusion, also renamed all the f's to g. this also removes confusion with the f that stands for function value. fixed wrapper for function value in integrator)