Logging can now be instantiated at module level.
Minor formatting changes.