Added reference to COMInterfaces to solve TsString problem and did other fixes