fixed logistic_train.m
got optional input working