Add a script to test a corner case that may screw up
Clean up comments
Generalize boost-based function to non-constant neighbours
Fix the corner case script.  Corner case works fine.
Remove Tobin's original HK
Add minor polish and changes