Updates to xls generation

modified processing of sections with missing or incorrect template ids
5 files changed