bug 1065352: Add a number of comments and implement small changes and checks to event ordering