Merge pull request #4 from Gheek/master

[FIXED] Memory Leak
Merge pull request #5 from Gheek/master

implemented event logger
Implemented changes from pull request #3