Improvements on documentation.
Fix tests.