(1) First draft of rc4 functionality. Adding output logic and counter.