modifying lastUpdate to get latest date, using utility to traverse tree

* minor formatting changes
* swapped == for .equals
* added testing of comparator (very trivial)