Implemented more opcodes, some bug fixes