Write memory dump as a binary file to memory.bin on exit
Added memory.bin to the gitignore
Used bytes() to print memory dump, encode(ascii) fails on >128 values
Added support for binary(%), octal(0), and hex($).