refined Node struct and worked on addRoute