Added window geometry to saved files. Tweaked htd file format.