some code optimizations , removed some profiling utility calls.
removed logdebug calls, optimizations
removed warnings & dead code