added uniqueAttribute option and using indexes for matching repeating nodes
remove attributes when nulled
added testing tests