Double well example templated.

This is the complete first draft of the double well potential. The goal is to use this as a template for more complicated examples.