Refactoring due to data logger architecture improvement
Refactoring to single class architecture instead of global functions and variables
(based on code review)