Cleaning up temp vars, white space, and simplified the return of executeProgram.