Removed 'using namespace std' directives. Replaced 'cout' by a logger. Code cleanup