implemented cpp mc_test, harmonic potential based on basepotential, bug fixes