Added comments and doc-strings.
Added Event.name for global event.
Tidied up a bit.