Major update to BetterDOMDocument, including streamlined code and better documentation