Added endFlush event doc

Documentation for endFlush event.