Documented the library in Haddock style, in preparation for the eventual upload to Hackage.