support for multidimensional lattice fixed. cubic lattice added