Added diagram and included in doc