added opt_default, with no info apart from the minimum to construct window
more robust handling of opt files, it should not ask the user to choose opt file if the previous optfile was opt_default, and some other elements to make it more streamlined