Fixed sample tH deflating problem by just doubling the last element of the array. I consider tH functional now. (though I should probably check the swatch swaps