Updated KMLwriter