added script to generate haddock documentation