initial work on successor generator
Changed from external modules to 'internal modules' for browser use