Added a program loop and exit

The interpreter now has a program loop and 'exit' command. The program
automatically closes after 10 commands are given.