Added constructor inheritance for other potentials eg harmonic, anharmonic.