Fixed unnamed sectioning elements and incorrect nestings
Merge pull request #3537 from pjackson28/cleanupsectioningelements

Fixed unnamed sectioning elements and incorrect nestings