added support for NSError code.
expose whole NSError rather than code prop.
Merge pull request #284 from jeff7091/master

exposing NSError object