Made a better Haddock documentation