Improved comments and tests.
Refactored saturation.