Move functions around, and some small fixes.

* Add a default file logger.
* Add line endings and fix spacing in messages.