fix timesort plugin & some comments