fixing legend for plot created by check_delay.
Changing debug level priting for rayleigh fit.