update filter to emit 0s, and clean up comments and constants