clean-up parameters with sane defaults
added simple class to print list of events
Added functional implementation of event detection inside libraries