added setFilterSize /JP
lots of tweaking. some bug fixes