Hello,
What code are you running? template methods don't remove existing contents unless it's explicity requested. addHeader and addFooter methods remove existing headers and footers.
We have tested it loading a template with multiple sections and change the contents and it works correctly. If you send to contact[at]phpdocx.com the most simple code and the template that illustrate your issue we'll check it.
Regards.