initial update to repulsion lattice range example
order and layout shift matrix
better variable names