added readRegister pattern for stack pointer
fixed more instruction bugs