-notification test added 
-fixed bottle neck. 
-refactored main thread loop to eat less resources