filter out jar,zip,tar files
Added FilterPattern
Changed all function classes to inner classes