[add] containsPattern
[fix] major cleanup
[fix] docs