added #!/usr/bin/env Rscript at the top of each script