Add constants for NSError codes
Make sure a signature is present to ensure accurate error reporting

Fixes #6