Adding Haddock documentation