Added some haddock comments.