Rewrote the update() method based on the update() method in ofxTLBangs. No more crash when reaching the end of the last switch.