Functions for computing and revising of potentials are added
Tests for computing and revising of potentials are added