Add javadoc for the new DOM methods.
Fix typo in javadoc