get filename as argument and save output save on that
move outputs to figures and parameters folders