Fixed and implemented all of the opcodes with the exceptions of the undocumented ones