added IMPRT and ERR opcode implementations (#1)