Fix handling of trans-hets. Add some comments.