Logger implementation

Small refactoring: removed unused imports, additional spaces, moves constructors.
Logger implementation and using.