BER estimate function created. Files commented.