Emulator

Completed the emulator needed for autograding by Issue #13. Not fully tested, but we can test while creating assignments.