Added diagram and scripts