More xml output logic
King finished (without union between clusters),
more incapsulation,
drawing func added