added eventItem class to model events in the event buffer.
added eventBuffer class, to model a message buffering system