Added some Haddock comments.