Write docs.
Fix warning.