TIZ_LOG occurrences replaced with TIZ_LOGN and other cleanups.