Reintroducing the functions file in Rscript

We will use Rscript (RRegrs.R and RRegrs_Functions.R) to end this code.
At the end, RRegrs code will be a functions too and all functions will
be in one file.