Logistic Regression: Remove old code

Removed old code, added comments

Other changes:

Put all argument validation functions and __unique_string into utilities