added name property to chapter, section and subsection to enable references
added null checks for entity fields and dto properties