final tuning.
Add documentation.