I have altered the formula so that elements with Z, M, and MZ values can now be parsed. I still have to figure out how google maps parses X,Y,M,Z values though. Also, I added in the ability to extrude an element from the function call. I still have to play around with these additions, but so far so good.

wkt 2 kml 20091105