overhaul of fix ipi to be more consistent with LAMMPS programming conventions