Renaming of SAMs to *Function and rich functions to Rich*Function, changed examples and tests to use SAMs
Renaming of SAMs to *Function and rich functions to Rich*Function, changed examples and tests to use SAMs