Added OnUnknown. Fixed trimming. Separate ReadSection/ReadSubSections.