Added ToString for nodes

It also iterates and outputs the result now.