Events are working. Can still use some work
Wrapped memory management functions to detect memory leaks - there are memory leaks.