wip - added thumb interwork version of tribot

Preliminary cleanup of Tribot code for Thumb Interwork.
This is not optimized.