changed parameter list
removed submodule grabmem, I"ll just include the code