mostly code formatting, additionally removed useless loop frame in lattice.cpp and renamed parameter in declaration of init function in lattice.hpp to match definition.