updates to getpairwisepotentials.m
more edits to pairwisepotentials.m