Fix check for text nodes
Add test for reflow, add docs