added support for namespaces
Forgot what I did :D
Added tests for namespaces
Fixed failing fail tests
added namespace events