fixed Bugs

Fixed bug where last instruction runs past "end" of the defined program.
Fixed bug in main loop where stack is added to instead of cleared