Ts full integration almost done

this is a working copy with almost all features implemented =)