Various changes to NLCE support scripts, mainly Peter's square lattice scripts