fixed indentation, added missing semicolons, renamed functions 2 -> To, added pathSegsToStr
added test page
decreased some indentation levels
misc linting
added 2 more test pages
used pathSegsToStr more often
Merge pull request #2 from Delapouite/master

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