update logistic classifier read/write add tests