Updated lowpass filter

Updated lowpass filter using Alex's fix and re-introducing constants.
Uncommented lowpassfilter