Add documentation and lengthsH array to Field.
Add makeLengthsString function.
Clarify assert.