Applied many edits suggested by the editor.