add new function pathSegsToStr, renamed functions, test pages, fixed indentations