Updated to TS 1

Updated to TS 1 and fixed bug for insertRule