Check for dependicies in a better way, and run the sar_figures.R script at the end