Squashed 'lib/' changes from 5719794..0ed8405

0ed8405 Moving graph package into modgen
3dfb3f7 Small changes

git-subtree-dir: lib
git-subtree-split: 0ed8405ad080b6d49aac7cbbc7e10cd2d8606e3b
Merge commit '0549dc604c75fe093806d2d054a3d71cc0322ff0' into ellmaster