Added some doc files, modified mainwindow code