More work on crystal and potentials.  Potentials compile OK...