Second draft of core simulation.

MTTF becomes worse with increased P. Seems to function as expected.