cleanup
debug: add functions for debugging indices
add: function to decode flat index entries
fix: documents with text record size > 4096 failed to load