migrating to nserror
Error handling improved with NSError
Merge pull request #3 from voltz/develop

Improve Error Handling