Make saving with change of size correct.
Add documentation.