Updated FIR filter generation and new cos tables