Remove dead code.
Fix continuity test.
Fix signs for attractive/repulsive forces.