updated tdc1 analysis routines