Multi thread porting

Function "storeBadEvents" commented out because it asks for the get of a ME in the step1