Documentation and log message improvements