add round-funtion for numbers to lattice class
improve lattice singular interface and fix debug prints