write IMD and LAMMPS potentials
optimize performance a little bit
add elements functions for LAMMPS potential