new rules pattern
fixed pattern documentation
updated documentation
Merge branch 'pattern'