WIP: generator
Almost done with the generator. Event insertion is now buffered.
Genrator config minor changes