add rate parameter to tf_echo

before, tf_echo could only echo a tf at a fixed rate of 1Hz. This change adds a parameter that controls the rate.