Only save a log entry when something changed.
Some major bugfixes
Write first two tests