fixed indentation, added missing semicolons, renamed functions 2 -> To, added pathSegsToStr