updated r file

incorporated new directory structure