Add TAFC code, and few minor bells and whistles

This isn't fully tested yet, and the code needs a rewrite to make it clearer and more streamlined.  But, it did run to the end for one color direction without crashing, and seemed to do something vaguely sensible.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>