renamed the function and output names and put in missing packages for functions used See merge request !19