Clean up messages. Use LogError.

* Remove local debug flag and std::cout messages
* Use LogError
* Clean up comments