Bug fixes

The strings I was printing to the statsfiles were linebreaking
incorrectly. I need to make some tests for the statsfiles at some point.