Added simulation C program to be run on a PC.