Add gen_event template

As discussed I've removed the changes to the default code comments in the other templates and here I've only commited just the gen_event template