added the value of replica ID for events.
added comments.