Fixed haddock code examples
Merge pull request #15 from Gabriel439/fixhaddocks

Fixed haddock code examples