Fixed KML generation
Fixed state file saving
Now KML generator uses output from trashing function
Code cleanning