fix syntax error and improve error messages
put fullpath compression behind a switch

This will help us better measure the performance of this feature.
remove needless variable
configurable delimiters for improved readability
generic stringify method
add inline docs for prefix tree class