Added a hierarchy of kml base and derived sets, conforming to the google earth kml reference, for writing the kml files.