Fixing up some C++ lint warnings and added logging methods for verbose, warning, and error messages.