Text editor can now save documents, Documents now close when all editors are closed.