Add logging thru console and fix a few logging errors/issues