Lattice generator added - some examples in test given. Some minor changes