Clean up the graphviz diagram output a bit
Add some docstrings, especially to builderlib.py