Add haddock documentation for some functions and modules
include tests in cabal sdist
bump version