fixed math error in stdev() --KW
reorganized Filter.cpp to match the order in Filter.h --KW