Added Haddock documentation.