Docs & refactoring for logging & universal format