added automated data relocation to run_test, changed plotting in plot_data