Updated error codes
Implemented rest of opcodes