Preliminary TAN completion

TAN Bayes works. Implementing learning curve functionality.