implemented add, nand, and store instructions