Fixed convertDivsToParagraphs

and added Debug comments