Added haddock comments.