add function for KML creation
clean up code
add export functionality