Events: renamed events to event samples and made event stand for event classes/groups.
Implemented an event grouper that groups events by name.