Add a user-friendly print function to show node contents; useful for visualizing progress and for debugging as well.