Added Haddock documentation