Set up haddock and add doc comments