Unpatch for TS stuff

implemented global var isTS for switching on and off TS stuff
Merge pull request #28 from DonoA/master

Unpatch for TS stuff