Replaced the filter function with multimatch. Removed the mapPath option...

.... Added some tests. Fixes #4.