rewrite of xml.clone (also now available as filter method); updating docs