Improving the wrapper functions for logistic regression

Also need to implement a function that compares the accuracies