continued modularizing the calculation code
continued modularizing the calibration code
continued modularizing filter code
finished modularizing filter code