Added basic error reporting for the API
Merge pull request #47 from Hilzu/errorhandling

Added basic error reporting to API