Error handling in Event class

We added error handling in the class "Event" (std::map at operation).