Major opcode bug fixing and some formatting.