add config support for filters
Merge pull request #4 from hanguofeng/B1.0.2

fix bug of samples