Document the defragmentation mechanism.

Also use slightly less flow control in the WriteTo method to achieve a
similar end, at the cost of more indentation, but I think this
communicates the intent more crisply.