tweaking ToC, code samples and page breaks