Small logging improvements and documentation