Rewrote readDogsToTreeFromFile to be consistent with readDogsToHashFromFile