haddock

added documentation