Implemented emulator. May work, may not. IDK. Small error fixes in spec.