fixed haddocks and example