Renamed releaseGeneratorEvents to emitGeneratedEvent
Removed addEvent from the GeneratorInterface, should only be used internally.
Corrected a docblock type