* adding logs, fixing coding style
* c++