Merge the two versions findPreviousIDWithRecursion
Use report_fatal_error in findNextAddress
Move the comments from h to cpp for TraceFile