Added the sequence diagram for the events function

I merged with the upstream. I then just added the sequence diagram.