Added the addFromCatalog from my old function

Changed the function addCatalog to addFromCatalog
Added my old function, but its not working
Bad codding, that needed to be changed