added plot based on used memory, modified scripts to run for longer