Added some haddock comments to Types.