Add sparse support for log files.

Also make the documentation clearer.