adding new error codes for failed instantiation and bad filepath. closes #121