Add machine-readable error logging facility
Partial work on tagging of elements with error code
Refactor out add_error_tag method
Updated README to contain information on error codes