Add CLI and class to generate potentials and fields