Threading added
Yhat improvements
Class added