make text TOC more readable
corrected logic error
paths ajustment