Removed ipdb statement
Used a recursive function to build xls sections to fix issue with groups within repeats