Added diagram and some text and formatted some more