Added haddock documentation to repo.