Corrected where the bits for encdec and key length are located.
Turned off debug output.