writing up to the end of loading a demo file complete. Not yet proofed