added new opcodes, bug fixes, sendping and sendpong methods