Rename the opcode for method to function

This change is necessary in order to prevent duplicate opcodes of "M"