Added error code to return value
Merge pull request #60 from shannonturner/development

Added error code to return value