Generalized some lattice code. Lattice code nearly complete