nil guard
refactored out resolution finder
settings screen is now updated properly after reading in the options from the .ini file