Accept an input document and produce a structured output directory where individual sections are stored in separate files.