Started documenting in lib.rst.