Refactoring traversal algorithms to use boundaries
Correct html.prev and html.next near block elements
Update documentatino