initial port of parseDOM
add docstring
update readme