clean up
created memload and memstore
refractored runCode