renamed prefilter

Also added some comments and tests