Centering of diagrams and other improvements.