Bug fix: now check_delay subtracts the BG before doing the fit. The new ascii version does not require the header object.
working version...