Expose hmatrix when we import hcontools.
Replaced test with a literate demo.