added the diagram, closes #16