Improved pattern matching documentation with additional examples.