Fixed upsample bug, BER calculation not working yet