added lattice template conversion to object routine
added rest of lattice pins and changed settings