Input from stdin now works as expected in the emulator. New program to demo input from the command line.