Add config creator and fixed window popup bug

Added a createConfig function in Settings class
Created checks for empty config files