fix inline code and add headings