now use preferences to remember window size and location. also quits w/o warning if the doc is not dirty.