Rewrote log_wordbag to run as two callable scripts; validate runs test on training data; run trains on train and tests on test