fixed busy waiting and implemented basic visualization to KML