Separated the emulator in to its own file. Console and managing loop class in its own file.