Added network building R script