improved startup/teardown of distributed code
Small stand-alone example of the distributed code, based on the sunandearth simple example.