add getAllSectionsAsIds method

add addFolderParamIfPresent to deleteHeadersFooters
both are dependent on previous merges so not adding pr's to upstream until merged