charm examples: clean up and add features to jacobi3d (from pmodels book)