Adding output size as first 8 bytes of DTAR payload.
Misc code restructuring for "extract".