Remove unneeded imports and comments
Add LogWriter.Filename field

This can be used to see what the original filename for a LogWriter was.

Also includes some improvements to the unit tests.