Merge pull request #1 from facutuesca/master

Fix to compile with newer versions of GHC
Merge pull request #2 from facutuesca/master

Add example functions