fills the root node's fields

createnode(ptree);