updated some small things in filters.c to avoid overflow and commented some in the code