Implemented logging setup

Fixes #19
Fixed project building
logging: printing output also on screen
added logging to critical methods of components