Event generation corrected. Minor changes.
Snippet generator done.