Removed some comments
Made emulator run constantly in background
Removed some unneeded smart pointers