add chapter code for chapters and sections compiled on their own
reflow paragraphs