fixed bug where last command in program was not executed by adding no-op to reading of program