modified attrs() function to use filter, which is much faster improves overall runtime about 20%, also modified increment and update counts to minimize the number of function calls, which saves 1-5% time.
modified attrs() function to use filter, which is much faster improves overall runtime about 20%, also modified increment and update counts to minimize the number of function calls, which saves 1-5% time.

cmaclell/concept_formation,cmaclell/concept_formation,cmaclell/concept_formation