edited for readability up to section V
edited for readability up to section V