Make WriteDocument setter public, fix for #92