moved haddock documentation to the bottom of the file