Enhanced interface by adding errors
Use of new interface
Merge pull request #2 from mouhcine/master

Enhanced interface by adding errors