Almost final version of the code. Cleanup and javadoc pending.

++ Dynamic scenario results are not the same when a scenario simulation
is run on the platform and using the stand-alone version.