Document DOM; add parent references
Add simple=true dom option; refactor whitespace stripping as a parse-time option