Added some documentation.
Added pathFilter option for more complex path matching.