Little more help in the error msg.
Creating start and end set faster.
Merge branch 'dev' of https://github.com/PetterS/curve_extraction into dev