Added method logIt() to simplify error messages and verbose/debug output