Improved caching.  May contain debugging info.
Improved toString methods and shortened XyDimension to XyDim.
Fixed center-alignment for header/footer.  Still lots of debugging stmts.