another formatting fix
Added test_env.sh. Moved R code to R subdir.