Wrote the code for Case 1 (untested at the moment).
Improved clarity of the bit I just wrote.
Wrote case 2. ready for testing and deployment, maybe!
Clobbered jhk_empty, etc using the new function. Tests still pass.
Wrote a second function that tests the slope_confidence parameter a bit.
Excised obsolete code -- now we use my fancy function.