Add doctest to check rescaling for Legendre basis

Fix #83

Add doctest to check for rescaling of Legendre basis.
Rescaled coefficients still provide comparable and
accurate results in Legendre notebooks example.

The equations in the cahn_hilliard_simulation class
were also changed to meet PEP8 styling forms.