Use LogDebug instead of std::cout. Remove spurious includes. Remove commented out lines.