Improved events doc

Added namespaces in order to clarify examples.