Add diagram generation and depiction code
Forgot CMakeLists.txt