added median filter... renamed test directory