Much more stable now.

Code ready for long cluster run with persistance and financial frictions.

Signed-off-by: David Evans <dgevans42@gmail.com>