source code documentation for potentials