Fixed Log in main window not automatically scrolling to latest line
Improved documentation and code comments