some cleanup, includes CTC fix as suggested by Ian Castleton
CTC mode fix also for dcf77 scope example