Fix issue #12. Add a failure callback to save API call
Merge pull request #16 from suryatech/cb

Fix issue #12. Add a failure callback to save API call