reformat, and include factorie
bugfix in log loss, documentation to prevent such errors, shuffling in SGD, better defaults for sampling