Repaired deserialization

renamed "pair" to "root"
renaimed "pair.root" to "root.name"
Completed the change from "pair.root" to "root.name"