Minor changes to some R scripts
Bug fixes in BRAMS Makefile.