Finished triggerEvent().
Added processEvents().
Forgot to initialize queue pointers, now done.
Added comments.