Added menu bar and Preferences menu item.