documentation added for events