update pattern function description
fixed a bug in pattern extraction, test added
add tests for pattern type parsing
add support for negative pattern
add negative pattern demo
Release 0.1.3
fix tests