Fixed some typos and implemented the carry flag for some opcodes.