updating files as I go to bed. Correctly counts the number of nodes searched and pruned now.