Expanded javadoc on PatternMaker utility methods. First commit from AIDE.