Updated logging and documentation