added some comments in tre_vel functions