code improvements; valid resolution modes are now listed