Add support to CMakeLists for code coverage.
Clean up constrained optimization.
Merge branch 'dev' of github.com:PetterS/curve_extraction into dev