added global memory var, and some other minor tweeks. Trying to figure
out a good way to load the memory - right now my global variable crashes
the entire system... it doesn't finish loading, and debugger is not
being helpful, but for some reason the global memory var is staying
undefined.