XMLwriter format update, prints recursively
update comments, removed old code