Fixed bug reported as issue #561.
Created by: TobbeMobiTV
Changed collections of events to be objects instead of arrays, since the eventID is used as index, and can take very big values. The logging now prints out the eventId, and repeated events (id already added) are logged, but not added as before. Added white space where missing.