fix code blocks and make small edits.