implement a bit more of write_mem
fix not loading memory from hex addresses
add memory buffer for gdb