Improve documentation for pattern creation