added documentation for logistic regression and fixed whitespaces