added bit error counting for wrong bit
updated programs purpose