Fixed the script

Reimported the TSim folder (that why there are so many modifications).