updated pattern matching docs