add some settings to remember size and position of mainwindow, add check of dir path tosave/bin of daemon