Merge pull request #1 from twm378/master

Removed uneccesary copying of nodes.