Reorganize script, now it creates a class that contains all the
variables and methods required to evolve the system. This makes
it easier to avoid recomputing things without having to repeat lines
of code. Eventually this will be the main class in an importable
module.