New idea in coding: using checkpoints. instead of just params.redo, I now have params.startCP, to indicate which checkpoint I want to run the function from. Also, some debugging, and the result-presentation has improved.