cleanup example
update haddock docs