fixed heading numbering.
fixed index handling of primary terms
fixed TOC numbering
fixed Bookmark numbering
fixed title numbering