More work on document architecture. Almost at parity with non-document architecture version. Removed some outdated logging messages. Need to put save code back in. Began work on saving/restoring state.