added inlineGradient, inline it for perlin/ridge
change toString to toText
handle "." path as the root directory