emulator bugfixes
performance tweaks
extracting methods...
refactored emulator
screen debugging
WIP