generators.py added from kli branch
Michael and Adrian implemented changes for slicer, which were discussed with Gianni and Kevin