Minor TF cleanup (tf_sum was useless), plus comments