Revert "Added Loging func"

This reverts commit 470b6653de7fbf8e15f78b1b5b45ae20b0f98c4d.
RunTest: can be runned couple tests using command line.
Code formatting and minor changes