Add some haddock comments and tweak .cabal file.