add in place option, change pattern to just restrict
0.3.0

* added `inPlace` option
* changed `pattern` option to just filter