Add some documentation to event handler functions