added options window and added resolution to preferences