many small improvements to the text; use minted