Small fixes

Fix of previous commit,
Logging configuration was fixed,
Wrong written asserts were fixed
Merge pull request #28 from dukhlov/master

Small fixes