Add multidoc preparation support
Merge pull request #5 from MJJoyce/multidoc-prepare

Add multidoc preparation support