Fix issue with blank line of level != -1
Remove outdate comments
Fix issue where folded popups remains visible when opening a new text