Added an intermediate function which, if specified, is called on each error encountered
Merge pull request #2 from senico/master

Added an intermediate function which, if specified, is called on each error encountered