clean up: remove unneeded includes, rename initialize_memory to configure_memory and define initialize_memory wrapper