Added functions from emulator101. Fixed jumps
Fixed typo