add example code to 'matrix form' section
polish 'matrix form' section