handled multi-line programs
Fixed end-to-end, added sample, foreach now processes expression