added some basic memmory security
emulator is now stand-alone
merge