I made small changes in my functions, and added the packages to the script init.R