Document some TODOs
Fix bug in threshold range initialization