Shuffle functions out of stemlib, into either potential or wavefunction