More documentation.
Fix some warnings.