Improve documentation of mainwidget.cpp