implemented compound operation and added javadoc to event classes.