added autofocus to ModelViewer
refactoring of logging system