added end instruction and removed instruction array bound checking
rewrote switch case as computed goto
added setZero optimized instruction