added lattice code, started working on positivity