Added javadoc to the listener methods.