moved creation of J and ksp to constructor for mode rather than mode.setup. Added destructor, put destructor in Passive and Salt.