TODO: setstate
DONE: doc for Potential