Implemented index checking for control structure and modified imem.txt to test bounds on all instructions.