Fix stuff...

Fix mainly the settings directory and the mainwindow.ui