Adding method to remove a word if exists, and to print the words starting from a given node.