Parameterized the design and added scripts to generate BER curves.