Further improvements to eventsystem, events stored and read from xml file