docs added to MyKernel.formatMatchedPattern()