Introduce logger and some style changes

Signed-off-by: Dariusz Kluska <darkenk@gmail.com>