Fix haddock code block indentations.

Otherwise all HTML <pre> blocks will be generated with leading whitespace.
Add Haddocks to exported functions.

They were probably forgotten.
Remove all trailing whitespace.
Merge pull request #20 from nh2/improve-haddocks

Improve Haddocks