Added diagram and updated readme.