Reworked document handling (now multi window)
OSX finetunes