Added documentation and new log messages.