Moved the unit tests to a separate file.
Removed the unit tests.
Got logistic regression working ok. Did this by not normalizing the bias term in x and not normalizing y.
Added some comments.