Clean up messages. Use LogError.
Merge pull request #300 from ianna/no-cout-and-no-local-debug

Clean up messages. Use LogError.