encode implemented
codeBits and convert implemented
quickEncode implemented