finished section 5, some other small edits