Do some cleaning.

Add some missing documentation, remove some dead code, fix indentation.
fix wrong initialization in CubicBSpline
Fix cubic B-spline unit test.
Re-enable check for spline-gradient test.

Output precision has also been increased.
Merge pull request #5 from bchretien/master

Fix cubic B-splines