edits to section 6 and fixed typos in section 4
merged and small edits