Cleaned up the code, changed the way eventhandling is done in the master, it now gets a list of all events for current microstep if there are any distrubute them as needed. Changed indentation, replaces spaces with tabs, done via VI (=G)