bug fixes to TSP2() and updated TSP scripts.