Revert "Revert "diagram files""

This reverts commit e184ee00b0fcba361cf6ce11404c2f1c607cd68e.