Add inline documentation for util/diff