improve the DOM module's correctness
readme update
update example