[doc] added haddock documentation