add haddock comments