Corrected p(t|c) calculation, bit of refactoring of classifier