Implemented most commands in interpreter.

Post hoc tests have not yet been implemented.