added packet error measurement to MAC block. added new scripts for simulating PER performance in AWGN.