Serialization/deserialization code added (multiple events).
Accumulating EventWriter implemented.