updated cfi to handle text nodes and character offset
initial pagination features