fixed settings reader code

Now the string values may include spaces
Ensure the main window has title from settings
minor clean up and recompile