Added threadnum_t and used it everywhere you would want it used.
Removed some RSI comments that are basically off-topic.
Added pb_print back to utils.hpp.
Merge branch 'next' into sam_1445
Merge branch 'sam_1445' into next