comments in delay_estimate.m