Fixed sample rate check, fixed TEDs printout, misc other changes